package org.speed.dubbo.spi.request.impl;

import org.apache.dubbo.common.URL;
import org.speed.dubbo.spi.request.Request;

public class LogInteceptor implements Request  {

	Request request;
	
	public LogInteceptor(Request request) {
		this.request = request;
	}

	@Override
	public String sendRequest(URL url) {
		System.out.println("LogInteceptor before....");
		String result = request.sendRequest(url);
		System.out.println("LogInteceptor after....");
		
		return result;
	}

}
